<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('pdf_image_coordinates', function (Blueprint $table) {
            $table->id();
            $table->integer('pdf_image_id')->comment('pdf图片Id');
            $table->string('text')->nullable()->comment('坐标文字');
            $table->string('audio')->nullable()->comment('坐标音频');
            $table->text('coordinate')->comment('坐标信息 四个点');
            $table->integer('click_learn_id')->default(0)->comment('内容id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('pdf_image_coordinates');
    }
};
